package com.yxx.sys.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: YuXinXin
 * @Description:
 * @Date:Created in 21:56 2020/8/12
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
  private Integer code;
  private String msg;

  public static final Result LOGIN_SUCCESS=new Result(SysConstast.OK,"登陆成功");
  public static final Result LOGIN_ERROR=new Result(SysConstast.ERROR,"登陆失败，用户名或者密码错误");
  public static final Result LOGIN_ERROR_VERIFY=new Result(SysConstast.ERROR,"登陆失败，验证码错误");


  public static final Result ADD_SUCCESS=new Result(SysConstast.OK,"增加成功");
  public static final Result ADD_REEOR=new Result(SysConstast.ERROR,"增加失败");

  public static final Result DELETE_SUCCESS=new Result(SysConstast.OK,"删除成功");
  public static final Result DELETE_REEOR=new Result(SysConstast.ERROR,"删除失败");

  public static final Result UPDATE_SUCCESS=new Result(SysConstast.OK,"更新成功");
  public static final Result UPDATE_REEOR=new Result(SysConstast.ERROR,"更新失败");


  public static final Result UPLOAD_SUCCESS=new Result(SysConstast.OK,"上传成功");
  public static final Result UPLOAD_ERROR=new Result(SysConstast.ERROR,"上传失败");
}
